<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8"/>
    <meta name="keywords"/>
    <meta name="description"/>
    <meta name="viewport"
          content="user-scalable=no, width=device-width, initial-scale=1.0,minimum-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, maximum-scale=1.0 "/>
    <title>
        <yang:sitetitle/>-搜索
    </title></head>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/global.css"/>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/search/search.css"/>
<script type="text/javascript" src="__PUBLIC__/js/jquery-1.10.1.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/pie.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/global.js"></script>


<body>

<include file="Public:header"/>
<div class="section">
    <div class="content clearfix">
        <div class="col_con" style="width: 1120px; clear: both;">
            <div class="con_title">
                <img src="__PUBLIC__/images/title_icon15.png"/>
                <h2>搜索内容</h2>
            </div>
            <form id="myform" action="{:U('Search/index')}">
                <div class="form_query">
                    <input type="text" id="searchcontent" value="{$keyword}" name="keyword" placeholder="输入搜索关键词"/>
                    <button id="btnsearch">搜索</button>
                </div>
            </form>
            <if condition='!empty($keyword)'><div class="hot"><span>搜索<strong id="searchpara">{$keyword}</strong>的结果</span></div></if>


            <div class="result">
                <ul>
                    <foreach name='vlist' item='v'>
                    <li><a href="{:U('Show/index',array('cid'=>$v['cid'],'id'=>$v['id']))}">{$v.title}</a>
                        <p>
                            {$v.description|str2sub=###,'100',1}
                        <p>
                            <a href="{:U('Show/index',array('cid'=>$v['cid'],'id'=>$v['id']))}" style="color:green">查看详情</a>
                            <span class="date">日期：</span>{$v.publishtime|date='Y/m/d',###}
                        </p>
                    </li>
                    </foreach>
                </ul>
            </div>
            <div class="record">共{$count}条记录</div>
            <div class="page">{$page}</div>
        </div>
    </div>
</div>

<include file="Public:footer"/>
</body>
<script>
    $(function () {
        $("#btnsearch").click(function () {
            $("#myform").submit();
        });

    });
</script>
</html>
